package com.yun.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.reggie.dto.SetmealDto;
import com.yun.reggie.entity.Setmeal;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author xiao
 */
public interface SetmealService extends IService<Setmeal> {

    @Transactional
    void addWithDish(SetmealDto setmealDto);

    @Transactional
    void deleteWithDish(List<Long> ids);

    SetmealDto queryByIdWithDish(Long id);

    @Transactional
    void updateWithDish(SetmealDto setmealDto);

    void updateWithStatus(List<Long> ids,int status);
}
